package com.webchat.ugc.repository.entity.mall;

import com.webchat.ugc.repository.entity.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;


/**
 * 订单（商品订单 / 抽奖订单 / 积分兑换订单）对应的收获地址
 */
@Data
@Entity
@Table(name = "web_chat_mall_order_express")
public class MallOrderExpressEntity extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;

    /**
     * 用户收货地模版id
     */
    @Column(name = "template_id")
    private Long templateId;

    @Column(name = "province")
    private String province;

    @Column(name = "city")
    private String city;

    @Column(name = "district")
    private String district;

    @Column(name = "address")
    private String address;

    /**
     * 收件人姓名
     */
    @Column(name = "receiver_name")
    private String receiverName;

    @Column(name = "mobile")
    private String mobile;
}
